package com.report.dto.response;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author summer
 * 图像
 */
@Data
@SearchBean(tables = " research_report rr Left join research_file f on f.id = rr.file_id " +
        " left join research_tag t1 on t1.id=rr.security_id  "+
        " left join research_tag t on t.id=rr.industry_id  ",autoMapTo = "f" ,orderBy = "rr.createTime DESC")
public class ImageInfoRes implements Serializable {

    @DbField("rr.id")
    private Integer reportId;

    @DbField("f.image")
    private String image;

    @DbField("rr.name")
    private String name;

    @DbField("rr.industry_id")
    private Integer industryId;

    //研报行业
    @DbField("t.name")
    private String tabName;

    //数据来源
    @DbField("t1.name")
    private String securityName;

   @DbField("rr.context")
   private String context;

    @DbField("rr.createTime")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @DbField("rr.deleted")
    private Integer deleted;

}
